import Main from '@/components/layout/index.vue'
import About from '@/components/layout/about.vue'

export default [
    {
        path:'/login',
        name:'login',
        component:()=>import("@/components/layout/login.vue"),
        meta:{
            title: "登录页",
            icon:'md-add',
            hideInMenu: true,
            isParent: false
        }
    },
	{
		path:'/',
		name:'home',
		component:Main,
		meta:{
			title:'首页',
			icon:'el-icon-s-home',
			hideInMenu:false,
            isParent: true
		}
	},
    {
        path:'/system',
        name:'system',
        component:Main,
        meta:{
            title:"系统相关",
            icon:"el-icon-setting",
            hideInMenu:false,
            isParent:true
        },
        children:[
            {
                path:'access-manager',
                name:'access-manager',
                component:About,
                meta:{
                    title:"权限相关",
                    icon:"el-icon-bell",
                    hideInMenu:false,
                    isParent:false
                },
                children:[
                    {
                        path:'system-permission',
                        name:'system-permission',
                        component:() => import("@/views/system/access-manager/system-permission-index.vue"),
                        meta:{
                            title:'权限管理',
                            icon:'el-icon-eleme',
                            hideInMenu:false,
                            isParent:false
                        }
                    },
                    {
                        path:'system-role',
                        name:'system-role',
                        component:()=>import("@/views/system/access-manager/system-role-index.vue"),
                        meta:{
                            title:'角色管理',
                            icon:'el-icon-platform-eleme',
                            hideInMenu:false,
                            isParent:false
                        }
                    }
                ]
            },
            {
                path:'other-manager',
                name:'other-manager',
                component:About,
                meta:{
                    title:'其他管理',
                    icon:'el-icon-message-solid',
                    hideInMenu:false,
                    isParent:false
                },
                children:[
                    {
                        path:'system-actuator',
                        name:'system-actuator',
                        component:()=>import("@/views/system/actuator-manager/system-actuator-index.vue"),
                        meta:{
                            title:'追踪监控',
                            icon:'el-icon-video-camera',
                            hideInMenu:false,
                            isParent:false
                        }
                    },
                    {
                        path:'dictionary-manager',
                        name:'dictionary-manager',
                        component:()=>import("@/views/system/dictionary-manager/system-dictionary-index.vue"),
                        meta:{
                            title:'字典管理',
                            icon:'el-icon-s-management',
                            hideInMenu:false,
                            isParent:false
                        }
                    }
                ]
            }
        ]
    },
    {
        path:'/principal',
        name:'principal',
        component:Main,
        meta:{
            title:'校长办',
            icon:'el-icon-folder-opened',
            hideInMenu:false,
            isParent:true
        },
        children:[
            {
                path:'school-manager',
                name:'school-manager',
                component:About,
                meta:{
                    title:'校区相关',
                    icon:'el-icon-office-building',
                    hideInMenu:false,
                    isParent:false
                },
                children:[
                    {
                        path:'school-index',
                        name:'school-index',
                        component:()=>import("@/views/principal/school-manager/school-index.vue"),
                        meta:{
                            title:'校区管理',
                            icon:'el-icon-school',
                            hideInMenu:false,
                            isParent:false
                        }
                    },
                    {
                        path:'school-teacher',
                        name:'school-teacher',
                        component:()=>import("@/views/principal/school-manager/school-teacher.vue"),
                        meta:{
                            title:'教师管理',
                            icon:'el-icon-user-solid',
                            hideInMenu:false,
                            isParent:false
                        }
                    },
                    {
                        path:'school-teacher-scanner',
                        name:'school-teacher-scanner',
                        component:()=>import("@/views/principal/school-manager/school-teacher-scanner.vue"),
                        meta:{
                            title:'教师录入',
                            icon:'el-icon-edit',
                            hideInMenu:false,
                            isParent:false
                        }
                    }
                ]
            }
        ]
    },
    {
        path:"/quality",
        name:"quality",
        component:Main,
        meta:{
            title:"教质管理",
            icon:"el-icon-s-claim",
            hideInMenu:false,
            isParent:true
        },
        children:[
            {
                path:"student-manager",
                name:'student-manager',
                component:About,
                meta:{
                    title:'学员相关',
                    icon:'el-icon-user',
                    hideInMenu:false,
                    isParent:false
                },
                children:[
                    {
                        path:'student-info',
                        name:'student-info',
                        component:()=>import("@/views/quality/student-manager/student-index.vue"),
                        meta:{
                            title:'学员信息',
                            icon:'el-icon-files',
                            hideInMenu:false,
                            isParent:false
                        }
                    }
                ]
            },
            {
                path:"classes-manager",
                name:"classes-manager",
                component:About,
                meta:{
                    title:"班级相关",
                    icon:'el-icon-edit-outline',
                    hideInMenu:false,
                    isParent:false
                },
                children: [
                    {
                        path:'classes-info',
                        name:'classes-info',
                        component:()=>import("@/views/quality/classes-manager/classes-index.vue"),
                        meta:{
                            title:"班级管理",
                            icon:'el-icon-edit',
                            hideInMenu:false,
                            isParent:false
                        }
                    }
                ]
            }
        ]
    },
    {
        path:'/work',
        name:'work',
        component:Main,
        meta:{
            title:'我的工作台',
            icon:'el-icon-s-management',
            hideInMenu:false,
            isParent:true
        },
        children:[
            {
                path:'my-work',
                name:'my-work',
                component:About,
                meta:{
                    title:'工作台',
                    icon:'el-icon-edit-outline',
                    hideInMenu:false,
                    isParent:false
                },
                children:[
                    {
                        path:'each-general',
                        name:'each-general',
                        component:()=>import("@/views/work/each-general.vue"),
                        meta:{
                            title:'个人事务',
                            icon:'el-icon-tickets',
                            hideInMenu:false,
                            isParent:false
                        }
                    }
                ]
            }
        ]
    }
]